package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.domain.StrategyUserComment;
import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.StrategyUserCommentQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StrategyUserCommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyUserComment entity);

    StrategyUserComment selectByPrimaryKey(Long id);

    List<StrategyUserComment> selectAll();

    int updateByPrimaryKey(StrategyUserComment entity);

    List<StrategyUserComment> selectByStrategyCommentId(StrategyUserCommentQuery qo);

    int selectTotalCountForUnreadComment(User currentUser);

    List<StrategyComment> selectComment(@Param("uId") Long id, @Param("read") Boolean read);

    void updateRead( Long strategyCommentId);

    List<Long> selectIdsByStrategyCommentId(Long strategyCommentId);
}